package org.solar.util;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class BaseUtil {
    public static String getClassPath( ) {
        return getClassPath(BaseUtil.class);
    }
    public static String getClassPath(Class cla) {
        String path=cla.getResource("/").getPath();
        try {
            path= URLDecoder.decode(path,"utf-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return path;
    }
}
